﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    [Serializable]
    public class Car
    {
        public Car()
        { }
        #region Model
        private int _id;
        private string _code;
        private string _cartype;
        private string _color;
        private string _factorcode;
        private string _motorcode;
        private string _dipancode;
        private Int64 _starmax;
        private Int64 _max;
        private DateTime _buytime;
        private DateTime _caretime;
        private DateTime _endcare;
        private bool _drive;
        private DateTime _insuretime;
        private DateTime _insureend;
        private DateTime _roadtime;
        private DateTime _roadend;
        private string _path;
        private bool _state;
        private string _seat;
        private decimal _buyprice;
        private decimal _tax;
        private decimal _shangpaishui;
        private string _decorate;
        private string _owners;
        private string _ownertel;
        private DateTime _staropen;
        private DateTime _endopen;
        private DateTime _starpastime;
        private DateTime _endpass;
        private DateTime _starcard;
        private DateTime _endcard;
        private DateTime _staryunguan;
        private DateTime _endyunguan;
        private DateTime _starbridge;
        private DateTime _endbridge;
        private DateTime _starcheshui;
        private DateTime _endchenshui;
        private decimal _timeoutprie;
        private decimal _overtimeprie;
        private int _daykm;
        private int _userid;
        private decimal _shangpaifei;
        private int _sendmile;
        private Int64 _nextmile;
        private string _marks;
        private string _brand;
        private DateTime _warrtime;
        private DateTime _cartime;
        private decimal _dayrent;
        private string _carkind;
        /// <summary>
        /// 
        /// </summary>
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 车牌号
        /// </summary>
        public string Code
        {
            set { _code = value; }
            get { return _code; }
        }
        /// <summary>
        /// 车型
        /// </summary>
        public string Cartype
        {
            set { _cartype = value; }
            get { return _cartype; }
        }
        /// <summary>
        /// 颜色
        /// </summary>
        public string Color
        {
            set { _color = value; }
            get { return _color; }
        }
        /// <summary>
        /// 出厂编号
        /// </summary>
        public string FactorCode
        {
            set { _factorcode = value; }
            get { return _factorcode; }
        }
        /// <summary>
        /// 出厂日期
        /// </summary>
        public DateTime FactoryOutDate { get; set; }
        /// <summary>
        /// 发动机号
        /// </summary>
        public string MotorCode
        {
            set { _motorcode = value; }
            get { return _motorcode; }
        }
        /// <summary>
        /// 底盘编号
        /// </summary>
        public string dipanCode
        {
            set { _dipancode = value; }
            get { return _dipancode; }
        }
        /// <summary>
        /// 起始公里数
        /// </summary>
        public Int64 StarMax
        {
            set { _starmax = value; }
            get { return _starmax; }
        }
        /// <summary>
        /// 公里数
        /// </summary>
        public Int64 Max
        {
            set { _max = value; }
            get { return _max; }
        }
        /// <summary>
        /// 购买时间
        /// </summary>
        public DateTime BuyTime
        {
            set { _buytime = value; }
            get { return _buytime; }
        }
        /// <summary>
        /// 年审时间
        /// </summary>
        public DateTime CareTime
        {
            set { _caretime = value; }
            get { return _caretime; }
        }
        /// <summary>
        /// 年审截止时间
        /// </summary>
        public DateTime EndCare
        {
            set { _endcare = value; }
            get { return _endcare; }
        }
        /// <summary>
        /// 是否带驾  1带驾  0否
        /// </summary>
        public bool Drive
        {
            set { _drive = value; }
            get { return _drive; }
        }
        /// <summary>
        /// 保险购买时间
        /// </summary>
        public DateTime InsureTime
        {
            set { _insuretime = value; }
            get { return _insuretime; }
        }
        /// <summary>
        /// 保险截止时间
        /// </summary>
        public DateTime InsureEnd
        {
            set { _insureend = value; }
            get { return _insureend; }
        }
        /// <summary>
        /// 养路费购买时间
        /// </summary>
        public DateTime RoadTime
        {
            set { _roadtime = value; }
            get { return _roadtime; }
        }
        /// <summary>
        /// 养路费结束时间
        /// </summary>
        public DateTime RoadEnd
        {
            set { _roadend = value; }
            get { return _roadend; }
        }
        /// <summary>
        /// 照片
        /// </summary>
        public string Path
        {
            set { _path = value; }
            get { return _path; }
        }
        /// <summary>
        /// 车状态  1出租，0未租
        /// </summary>
        public bool State
        {
            set { _state = value; }
            get { return _state; }
        }
        /// <summary>
        /// 车位数
        /// </summary>
        public string Seat
        {
            set { _seat = value; }
            get { return _seat; }
        }
        /// <summary>
        /// 购买价格
        /// </summary>
        public decimal BuyPrice
        {
            set { _buyprice = value; }
            get { return _buyprice; }
        }
        /// <summary>
        /// 购置税
        /// </summary>
        public decimal Tax
        {
            set { _tax = value; }
            get { return _tax; }
        }
        /// <summary>
        /// 上牌费
        /// </summary>
        public decimal Shangpaishui
        {
            set { _shangpaishui = value; }
            get { return _shangpaishui; }
        }
        /// <summary>
        /// 汽车装饰
        /// </summary>
        public string Decorate
        {
            set { _decorate = value; }
            get { return _decorate; }
        }
        /// <summary>
        /// 车主
        /// </summary>
        public string Owners
        {
            set { _owners = value; }
            get { return _owners; }
        }
        /// <summary>
        /// 车主联系方式
        /// </summary>
        public string OwnerTel
        {
            set { _ownertel = value; }
            get { return _ownertel; }
        }
        /// <summary>
        /// 运营办证时间
        /// </summary>
        public DateTime StarOPen
        {
            set { _staropen = value; }
            get { return _staropen; }
        }
        /// <summary>
        /// 运营办证截止时间
        /// </summary>
        public DateTime EndOpen
        {
            set { _endopen = value; }
            get { return _endopen; }
        }
        /// <summary>
        /// 年票购买时间
        /// </summary>
        public DateTime StarPasTime
        {
            set { _starpastime = value; }
            get { return _starpastime; }
        }
        /// <summary>
        /// 年票购买截止时间
        /// </summary>
        public DateTime EndPass
        {
            set { _endpass = value; }
            get { return _endpass; }
        }
        /// <summary>
        /// 超限办证时间
        /// </summary>
        public DateTime StarCard
        {
            set { _starcard = value; }
            get { return _starcard; }
        }
        /// <summary>
        /// 超限办证截止时间
        /// </summary>
        public DateTime EndCard
        {
            set { _endcard = value; }
            get { return _endcard; }
        }
        /// <summary>
        /// 运管费购买时间
        /// </summary>
        public DateTime Staryunguan
        {
            set { _staryunguan = value; }
            get { return _staryunguan; }
        }
        /// <summary>
        /// 运管费截止时间
        /// </summary>
        public DateTime Endyunguan
        {
            set { _endyunguan = value; }
            get { return _endyunguan; }
        }
        /// <summary>
        /// 路桥票购买时间
        /// </summary>
        public DateTime Starbridge
        {
            set { _starbridge = value; }
            get { return _starbridge; }
        }
        /// <summary>
        /// 路桥票购买截止时间
        /// </summary>
        public DateTime Endbridge
        {
            set { _endbridge = value; }
            get { return _endbridge; }
        }
        /// <summary>
        /// 車船稅开始時間
        /// </summary>
        public DateTime StarCheshui
        {
            set { _starcheshui = value; }
            get { return _starcheshui; }
        }
        /// <summary>
        /// 車船稅结束時間
        /// </summary>
        public DateTime EndChenshui
        {
            set { _endchenshui = value; }
            get { return _endchenshui; }
        }
        /// <summary>
        /// 超时收费(元/小时)
        /// </summary>
        public decimal TimeoutPrie
        {
            set { _timeoutprie = value; }
            get { return _timeoutprie; }
        }
        /// <summary>
        /// 超驶收费(元/公里)
        /// </summary>
        public decimal OvertimePrie
        {
            set { _overtimeprie = value; }
            get { return _overtimeprie; }
        }
        /// <summary>
        /// 每天限时里程
        /// </summary>
        public int DepID { get; set; }

        /// <summary>
        /// 司机Id
        /// </summary>
        public int UserId
        {
            set { _userid = value; }
            get { return _userid; }
        }
        /// <summary>
        /// 司机姓名
        /// </summary>
        public string DriverName
        {
            set;
            get;
        }
        /// <summary>
        /// 司机电话
        /// </summary>
        public string DriverTel
        {
            set;
            get;
        }
        /// <summary>
        /// 上牌费
        /// </summary>
        public decimal ShangPaiFei
        {
            set { _shangpaifei = value; }
            get { return _shangpaifei; }
        }
        /// <summary>
        /// 二保里程
        /// </summary>
        public int SendMile
        {
            set { _sendmile = value; }
            get { return _sendmile; }
        }
        /// <summary>
        /// 下次二保
        /// </summary>
        public Int64 NextMile
        {
            set { _nextmile = value; }
            get { return _nextmile; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Marks
        {
            set { _marks = value; }
            get { return _marks; }
        }
        /// <summary>
        /// 厂牌
        /// </summary>
        public string Brand
        {
            set { _brand = value; }
            get { return _brand; }
        }
        /// <summary>
        /// 保修时间
        /// </summary>
        public DateTime WarrTime
        {
            set { _warrtime = value; }
            get { return _warrtime; }
        }
        /// <summary>
        /// 还车日
        /// </summary>
        public DateTime CarTime
        {
            set { _cartime = value; }
            get { return _cartime; }
        }
        /// <summary>
        /// 每日租金
        /// </summary>
        public decimal DayRent
        {
            set { _dayrent = value; }
            get { return _dayrent; }
        }

        /// <summary>
        /// 每日押金
        /// </summary>
        public decimal DayDeposit { get; set; }
        /// <summary>
        /// 每日限制里程
        /// </summary>
        public Int64 DayLimitKM { get; set; }

        /// <summary>
        /// 每月租金
        /// </summary>
        public decimal MonthRent { get; set; }
        /// <summary>
        /// 每月押金
        /// </summary>
        public decimal MonthDeposit { get; set; }
        /// <summary>
        /// 每月限制里程
        /// </summary>
        public Int64 MonthLimitKM { get; set; }

        /// <summary>
        /// 每年租金
        /// </summary>
        public decimal YearRent { get; set; }
        /// <summary>
        /// 每年押金
        /// </summary>
        public decimal YearDeposit { get; set; }
        /// <summary>
        /// 每年限制里程
        /// </summary>
        public Int64 YearLimitKM { get; set; }

        /// <summary>
        /// 机场接送单程
        /// </summary>
        public decimal AirportShuttleOneWay { get; set; }

        /// <summary>
        /// 机场接送来回
        /// </summary>
        public decimal AirportShuttleTwoWay { get; set; }

        /// <summary>
        /// 包车三小时租金
        /// </summary>
        public decimal Chartered3Rent{ get; set; }

        /// <summary>
        /// 包车八小时租金
        /// </summary>
        public decimal Chartered8Rent { get; set; }

        /// <summary>
        /// 包车三小时租金  过时费
        /// </summary>
        public decimal OutdatedFee3 { get; set; }

        /// <summary>
        /// 包车八小时租金  过时费
        /// </summary>
        public decimal OutdatedFee8 { get; set; }

        /// <summary>
        /// 长途旅程 一
        /// </summary>
        public decimal LongJourneys1 { get; set; }


        /// <summary>
        /// 长途旅程 二
        /// </summary>
        public decimal LongJourneys2 { get; set; }

        /// <summary>
        /// 长途旅程 三
        /// </summary>
        public decimal LongJourneys3 { get; set; }

        /// <summary>
        /// 排汽量
        /// </summary>
        public float ExhaustVolume { get; set; }

        /// <summary>
        /// 车辆图片
        /// </summary>
        public byte[] CarImage { get; set; }

        /// <summary>
        /// 车种
        /// </summary>
        public string CarKind
        {
            set { _carkind = value; }
            get { return _carkind; }
        }

        /// <summary>
        /// 【自有】、【挂靠】
        /// </summary>
        public bool IsSelf { get; set; }

        /// <summary>
        ///【停业中】【营业中】
        /// </summary>
        public bool IsActive { get; set; }

        public int CommissionRatio { get; set; }

        #endregion Model

    }
}
